home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / layer / r3prilay.js < prev   
Encoding:
JavaScript  |  2005-04-04  |  22.2 KB  |  688 lines

  1.  
  2. // JavaScript wrapper for r3prilay.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_PRIMLAYER_H = 1;
  7. include("real/layer/r3objlay.js")
  8.  
  9.  
  10. var R3CLID_PRIMLAYER = 73;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Toggle the OPEN flag of seleced objects
  16.  
  17. R3PLAYM_OPENLEVEL = 73000;
  18.  
  19. function mR3PLAYM_OPENLEVEL() {
  20.   DoA(this.r3obj, 73000, 0, R3TID_INTEGER, 0);
  21. }
  22.  
  23. // Description: Perform CUT and PASTE in one operation
  24.  
  25. R3PLAYM_CUTPASTE = 73001;
  26.  
  27. function mR3PLAYM_CUTPASTE() {
  28.   DoA(this.r3obj, 73001, 0, R3TID_INTEGER, 0);
  29. }
  30.  
  31. // Description: Perform CUT and PASTE2 in one operation
  32.  
  33. R3PLAYM_CUTPASTE2 = 73002;
  34.  
  35. function mR3PLAYM_CUTPASTE2() {
  36.   DoA(this.r3obj, 73002, 0, R3TID_INTEGER, 0);
  37. }
  38.  
  39. // Description: Delete all objects
  40.  
  41. R3PLAYM_DELETEROOT = 73003;
  42.  
  43. function mR3PLAYM_DELETEROOT() {
  44.   DoA(this.r3obj, 73003, 0, R3TID_INTEGER, 0);
  45. }
  46.  
  47. // Description: like doing R3OLAYM_PERFORMONSELECTED when root is selected.
  48. // p1: Boolean, if set, method doesn't generate MM_CHANGED.
  49.  
  50. R3PLAYM_PERFORMONROOT = 73004;
  51.  
  52. function mR3PLAYM_PERFORMONROOT(p1) {
  53.   DoA2(this.r3obj, 73004, p1, R3TID_BOOLEAN, 0, 0, R3TID_INTEGER, 0);
  54. }
  55.  
  56. // Description: Set selected objects to edit state
  57.  
  58. R3PLAYM_EDITOBJECTS = 73005;
  59.  
  60. function mR3PLAYM_EDITOBJECTS() {
  61.   DoA(this.r3obj, 73005, 0, R3TID_INTEGER, 0);
  62. }
  63.  
  64. // Description: Return TRUE if layer is in edit state ie. any objects are beeing edited
  65.  
  66. R3PLAYM_EDITING = 73006;
  67.  
  68. function mR3PLAYM_EDITING() {
  69.   DoA(this.r3obj, 73006, 0, R3TID_INTEGER, 0);
  70. }
  71.  
  72. // Description: Lock layer for changing wire objects so they can be safely changed while drawing.
  73.  
  74. R3PLAYM_WIRELOCK = 73007;
  75.  
  76. function mR3PLAYM_WIRELOCK() {
  77.   DoA(this.r3obj, 73007, 0, R3TID_INTEGER, 0);
  78. }
  79.  
  80. // Description: Release layer for changing wire objects.
  81.  
  82. R3PLAYM_WIRERELEASE = 73008;
  83.  
  84. function mR3PLAYM_WIRERELEASE() {
  85.   DoA(this.r3obj, 73008, 0, R3TID_INTEGER, 0);
  86. }
  87.  
  88. // Description: Execute all idle messages
  89. // Virtual method
  90.  
  91. R3PLAYM_EXECIDLES_moved_to_o = 73009;
  92.  
  93. function mR3PLAYM_EXECIDLES_moved_to_o() {
  94.   DoA(this.r3obj, 73009, 0, R3TID_INTEGER, 0);
  95. }
  96.  
  97. // Description: Add idle message to the layers idle list
  98. // Virtual method
  99. // Returns: Boolean, true if succeeded
  100. // p1: Object, object to be called
  101. // p2: Integer, method
  102. // p3: Object, p3 parameter for the object to be called.    
  103.  
  104. R3PLAYM_ADDIDLEMSG_moved_to_ = 73010;
  105.  
  106. function mR3PLAYM_ADDIDLEMSG_moved_to_(p1, p2, p3) {
  107.   return   DoA3(this.r3obj, 73010, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
  108. }
  109.  
  110. // Description: If layer is in edit mode delete selected points in objects else behave like
  111. //      R3OLAYM_DELETESELECTION
  112.  
  113. R3PLAYM_DELETECONDITIONAL = 73011;
  114.  
  115. function mR3PLAYM_DELETECONDITIONAL() {
  116.   DoA(this.r3obj, 73011, 0, R3TID_INTEGER, 0);
  117. }
  118.  
  119. // Description: Send R3PRIMM_EXPORT to root object
  120.  
  121. R3PLAYM_EXPORT = 73012;
  122.  
  123. function mR3PLAYM_EXPORT() {
  124.   DoA(this.r3obj, 73012, 0, R3TID_INTEGER, 0);
  125. }
  126.  
  127. // Description: Make INSTANCE objects of the selected objects
  128. // p1: Object, insert after this object, if NULL insert at the end, if same as the
  129. //      parent level, then insert as the first child.
  130. // p3: Tag[], tag list containing R3PLAYA_AutoSelect, R3PLAYA_DuplicateInstances
  131.  
  132. R3PLAYM_MAKEINSTANCES = 73013;
  133.  
  134. function mR3PLAYM_MAKEINSTANCES(p1, p3) {
  135.   Do2(this.r3obj, 73013, p1, R3TID_OBJECT, 0, p3, R3TID_TAG, R3TNF_ARRAY);
  136. }
  137.  
  138. // Description: Make KEYFRAME objects of the selected objects
  139.  
  140. R3PLAYM_MAKEKEYFRAMES = 73014;
  141.  
  142. function mR3PLAYM_MAKEKEYFRAMES() {
  143.   DoA(this.r3obj, 73014, 0, R3TID_INTEGER, 0);
  144. }
  145.  
  146. // Description: Insert new object to a layer. The contents of the selection list remains the
  147. //      same (R3PLAYA_SelectionMethod ignored)
  148. // p1: Boolean, true to update select list
  149. // p2: Boolean, if true, no space mapping is applied (object is inserted with given space)
  150. // p3: Object, object to be inserted
  151.  
  152. R3PLAYM_RAWINSERT = 73015;
  153.  
  154. function mR3PLAYM_RAWINSERT(p1, p2, p3) {
  155.   DoA3(this.r3obj, 73015, p1, R3TID_BOOLEAN, 0, p2, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0);
  156. }
  157.  
  158. // Description: Pass list of the selected objects to the first selected object
  159. // p1: Integer, method to be sent to the first selected object
  160. // p2: Integer, if FALSE, selected objects are not deleted, otherwise only the first selected object is
  161. //      not deleted.
  162.  
  163. R3PLAYM_CONCATENATE = 73016;
  164.  
  165. function mR3PLAYM_CONCATENATE(p1, p2) {
  166.   DoA3(this.r3obj, 73016, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
  167. }
  168.  
  169. // Description: Make the first selected level the current level, if it is the current level
  170. //      move current level up to parent
  171.  
  172. R3PLAYM_MAKESELECTEDCURRENTL = 73017;
  173.  
  174. function mR3PLAYM_MAKESELECTEDCURRENTL() {
  175.   DoA(this.r3obj, 73017, 0, R3TID_INTEGER, 0);
  176. }
  177.  
  178. // Description: Do a copy and a paste so that the copys parent is the same
  179. //      as the origiinal
  180.  
  181. R3PLAYM_COPYPASTE = 73018;
  182.  
  183. function mR3PLAYM_COPYPASTE() {
  184.   DoA(this.r3obj, 73018, 0, R3TID_INTEGER, 0);
  185. }
  186.  
  187. // Description: Toggles selected objects edit state
  188.  
  189. R3PLAYM_TOGGLEEDITOBJECTS = 73019;
  190.  
  191. function mR3PLAYM_TOGGLEEDITOBJECTS() {
  192.   DoA(this.r3obj, 73019, 0, R3TID_INTEGER, 0);
  193. }
  194.  
  195. // Description: Make the first selected object the virtual root object.
  196. // Returns: Boolean, true if succeeded
  197.  
  198. R3PLAYM_MAKESELECTEDVIRTUALR = 73020;
  199.  
  200. function mR3PLAYM_MAKESELECTEDVIRTUALR() {
  201.   return   DoA(this.r3obj, 73020, 0, R3TID_INTEGER, 0);
  202. }
  203.  
  204. // Description: Call each selected object for each other selected object. The selected object (o) is
  205. //      called as: R3SendMsgA2(o, p1, o[n], p3);
  206. // Returns: Object, return value from the calllback method. If null, select list enumeration is cancelled.
  207. // p1: Integer, method to be called
  208. // p3: Object, p3 parameter for the method
  209.  
  210. R3PLAYM_CALLSELECTEDINPAIRS = 73021;
  211.  
  212. function mR3PLAYM_CALLSELECTEDINPAIRS(p1, p3) {
  213.   return   DoA2(this.r3obj, 73021, p1, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
  214. }
  215.  
  216. // Description: Snap the given 3D point to nearest object
  217. // Returns: Object, address of the nearest object
  218. // p1: r3Vect, position to be snapped (in abs space)
  219. // p2: r3Vect, snapped position in abs space
  220. // p3: r3Vect, parameter value corresponding the snapped position
  221.  
  222. R3PLAYM_SNAPTONEARESTSELECTE = 73022;
  223.  
  224. function mR3PLAYM_SNAPTONEARESTSELECTE(p1, p2, p3) {
  225.   return R3ToJS(  DoA3(this.r3obj, 73022, p1, R3TID_VECTOR, 0, p2, R3TID_VECTOR, 0, p3, R3TID_VECTOR, 0));
  226. }
  227.  
  228. // Description: Insert the given 'copy' object to layer without changing it object space. New 'dummy'
  229. //      parent level is added to accomplish this.
  230. // Returns: Object, address of the 'dummy parent' level.
  231. // p1: Object, original object
  232. // p3: Object, copy of the original object.
  233.  
  234. R3PLAYM_INSERTWITHFIXEDSPACE = 73023;
  235.  
  236. function mR3PLAYM_INSERTWITHFIXEDSPACE(p1, p3) {
  237.   return R3ToJS(  DoA2(this.r3obj, 73023, p1, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0));
  238. }
  239.  
  240. // Description: Replace the selected objects. The method scans through the selected objects. It first removes
  241. //      the selected object in question, calls the callback method which should return the new object.
  242. //      Finally the selected object in question is unreferenced. Note: the caller can ref the object
  243. //      to be replaced and this way keep it alive. The callback method is called as:
  244. //      R3SendMsgA(cbobj, cbmth, selectedobj, cbdata); Note2: the selected object in question is already removed from the
  245. //      layer when the callback method is called.
  246. // p1: Object, callback object
  247. // p2: Integer, callback method
  248. // p3: Object, callback data
  249.  
  250. R3PLAYM_REPLACE = 73024;
  251.  
  252. function mR3PLAYM_REPLACE(p1, p2, p3) {
  253.   DoA3(this.r3obj, 73024, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
  254. }
  255.  
  256. // Description: Insert the given object to the selected object. If the selected object is not
  257. //      true level object, one will be created so that insertion becomes possible. If there are
  258. //      more than one selected object, the object to be inserted will be duplicated and inserted
  259. //      for all of them.
  260. // Returns: Boolean, true if succeeded
  261. // p3: Object, object to be inserted.    
  262.  
  263. R3PLAYM_INSERTTOSELECTED = 73025;
  264.  
  265. function mR3PLAYM_INSERTTOSELECTED(p3) {
  266.   return   DoA(this.r3obj, 73025, p3, R3TID_OBJECT, 0);
  267. }
  268.  
  269. // Description: Inserts the given object to the given level object. If the 'level' is not
  270. //      true level, one will be created and the original level is inserted with the new
  271. //      object into the newly created level.
  272. // Returns: Object, address of the level in which the new object is inserted
  273. // p1: Object, target level
  274.  
  275. R3PLAYM_DROPTOLEVEL = 73026;
  276.  
  277. function mR3PLAYM_DROPTOLEVEL(p1) {
  278.   return R3ToJS(  DoA2(this.r3obj, 73026, p1, R3TID_OBJECT, 0, 0, R3TID_INTEGER, 0));
  279. }
  280.  
  281. // Description: Fetch symbolic string describing the status of the selected objects.
  282. // p3: String, buffer for holding the result (min length 256)
  283.  
  284. R3PLAYM_GETEDITSTRING = 73027;
  285.  
  286. function mR3PLAYM_GETEDITSTRING(p3) {
  287.   DoA(this.r3obj, 73027, p3, R3TID_STRING, 0);
  288. }
  289.  
  290. // Description: Activate animation recording: all attributes modified when layer is in recording mode are automatically
  291. //      keyframed.
  292. // Returns: Boolean, previous status
  293. // p3: Boolean, true to set recording, FALSE to clear.    
  294.  
  295. R3PLAYM_ANIMRECORD = 73028;
  296.  
  297. function mR3PLAYM_ANIMRECORD(p3) {
  298.   return   DoA(this.r3obj, 73028, p3, R3TID_BOOLEAN, 0);
  299. }
  300.  
  301. // Description: Get hierarchical name of the selected object. If more than one object selected, common
  302. //      part of the name path is returned.
  303. // Returns: Integer, number of selected objects.
  304. // p1: Integer, max size of the supplied buffer
  305. // p3: String, buffer    
  306.  
  307. R3PLAYM_GETSELECTEDNAMESTRIN = 73029;
  308.  
  309. function mR3PLAYM_GETSELECTEDNAMESTRIN(p1, p3) {
  310.   return   DoA2(this.r3obj, 73029, p1, R3TID_INTEGER, 0, p3, R3TID_STRING, 0);
  311. }
  312.  
  313. // Description: Insert object to given level
  314. // p2: Boolean, apply space mapping
  315. // p3: Object, object to be inserted    
  316.  
  317. R3PLAYM_INSERTTO = 73030;
  318.  
  319. function mR3PLAYM_INSERTTO(p2, p3) {
  320.   DoA3(this.r3obj, 73030, 0, R3TID_INTEGER, 0, p2, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0);
  321. }
  322.  
  323. // Description: Insert new object to a layer. Inserts after the given object. The contents of
  324. //      the selection list remains the same (R3PLAYA_SelectionMethod ignored)
  325. // p1: Boolean, true to update select list
  326. // p2: Boolean, if true, no space mapping is applied (object is inserted with given space)
  327. // p3: Tag[], tag list containing R3PLAYA_InsertThis and R3PLAYA_AfterThis.    
  328.  
  329. R3PLAYM_RAWINSERTAFTER = 73031;
  330.  
  331. function mR3PLAYM_RAWINSERTAFTER(p1, p2, p3) {
  332.   Do3(this.r3obj, 73031, p1, R3TID_BOOLEAN, 0, p2, R3TID_BOOLEAN, 0, p3, R3TID_TAG, R3TNF_ARRAY);
  333. }
  334.  
  335. // Description: Remove selected objects and insert them inside a new level. The parent for the
  336. //      newly created level is determined by the first selected object.
  337. // Returns: Object, newly created level
  338.  
  339. R3PLAYM_COLLECTTOLEVEL = 73032;
  340.  
  341. function mR3PLAYM_COLLECTTOLEVEL() {
  342.   return R3ToJS(  DoA(this.r3obj, 73032, 0, R3TID_INTEGER, 0));
  343. }
  344.  
  345. // Description: Enter interactive section.
  346.  
  347. R3PLAYM_BEGININTERACTION = 73033;
  348.  
  349. function mR3PLAYM_BEGININTERACTION() {
  350.   DoA(this.r3obj, 73033, 0, R3TID_INTEGER, 0);
  351. }
  352.  
  353. // Description: Leave interaction mode
  354.  
  355. R3PLAYM_ENDINTERACTION = 73034;
  356.  
  357. function mR3PLAYM_ENDINTERACTION() {
  358.   DoA(this.r3obj, 73034, 0, R3TID_INTEGER, 0);
  359. }
  360.  
  361. // Description: Translate selected objects by given transformation matrix
  362. // p3: r3Matrix, transformation matrix
  363.  
  364. R3PLAYM_TRANSFORM = 73035;
  365.  
  366. function mR3PLAYM_TRANSFORM(p3) {
  367.   DoA(this.r3obj, 73035, p3, R3TID_MATRIX, 0);
  368. }
  369.  
  370. // Description: Get hierarchical name of an object.
  371. // p1: Object, name of this object will be created
  372. // p2: Integer, max size of the supplied buffer
  373. // p3: String, buffer    
  374.  
  375. R3PLAYM_GETOBJECTNAMESTRING = 73036;
  376.  
  377. function mR3PLAYM_GETOBJECTNAMESTRING(p1, p2, p3) {
  378.   DoA3(this.r3obj, 73036, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_STRING, 0);
  379. }
  380.  
  381. // Description: Perform R3SetAttrsA(wire, tags) on the wire frame objects of the selected objects
  382. // p3: Tag[], tags to pass to R3SetAttrsA(). 
  383.  
  384. R3PLAYM_SETONSELECTEDWIRES = 73037;
  385.  
  386. function mR3PLAYM_SETONSELECTEDWIRES(p3) {
  387.   Do(this.r3obj, 73037, p3, R3TID_TAG, R3TNF_ARRAY);
  388. }
  389.  
  390. // Description: Set given sub component of a vector attribute in 'relative' way (the value is
  391. //      added to the current value, not assigned) to the wire frame objects of the selected
  392. //      objects.
  393. // p1: Integer, attribute to be set
  394. // p2: Integer, ordnum of the sub field (0 = x, 1 = y etc.)
  395. // p3: Number, new value    
  396.  
  397. R3PLAYM_SETRELATIVESUBFLOATO = 73038;
  398.  
  399. function mR3PLAYM_SETRELATIVESUBFLOATO(p1, p2, p3) {
  400.   DoA3(this.r3obj, 73038, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_FLOAT, 0);
  401. }
  402.  
  403. // Description: Select all sub objects of an object
  404. // p1: Boolean, if TRUE all sub objects are known to be unselected (gives quicker selection)
  405. // p3: Object, object whose sub object should be added to selection    
  406.  
  407. R3PLAYM_SELECTCHILDREN = 73039;
  408.  
  409. function mR3PLAYM_SELECTCHILDREN(p1, p3) {
  410.   DoA2(this.r3obj, 73039, p1, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0);
  411. }
  412.  
  413. // Description: Invert selection states
  414.  
  415. R3PLAYM_INVERTSELECTION = 73040;
  416.  
  417. function mR3PLAYM_INVERTSELECTION() {
  418.   DoA(this.r3obj, 73040, 0, R3TID_INTEGER, 0);
  419. }
  420.  
  421. // Description: map dynamig channel binding to a new value
  422. // p1: Integer, new attribute identifier
  423. // p3: String, name of the channel    
  424.  
  425. R3PLAYM_CHANGECHANNELBINDING = 73041;
  426.  
  427. function mR3PLAYM_CHANGECHANNELBINDING(p1, p3) {
  428.   DoA2(this.r3obj, 73041, p1, R3TID_INTEGER, 0, p3, R3TID_STRING, 0);
  429. }
  430.  
  431. // Description: fetch the parent level of first selected object.
  432. // p3: Boolean, if TRUE returns current level if there are no selected objects.    
  433.  
  434. R3PLAYM_GETPARENTOFSELECTED = 73042;
  435.  
  436. function mR3PLAYM_GETPARENTOFSELECTED(p3) {
  437.   DoA(this.r3obj, 73042, p3, R3TID_BOOLEAN, 0);
  438. }
  439.  
  440. // Description: An easy way to fetch selected objects. Supports the 'target / tool' object    * philosophy:
  441. //      the first n-1 selected objects are returned as targets and    * the last selected object is
  442. //      returned as the tool. Call R3PLAYM_FREESELECTED    * to release the memory allocated by this method. This
  443. //      method locks    * the select list in shared lock.
  444. // Returns: Object, null terminated array of target objects
  445. // p1: Integer[], number of target objects
  446. // p3: Object[], memory for the tool object
  447.  
  448. R3PLAYM_GETSELECTED = 73043;
  449.  
  450. function mR3PLAYM_GETSELECTED(p1, p3) {
  451.   return R3ToJS(  DoA2(this.r3obj, 73043, p1, R3TID_INTEGER, R3TNF_ARRAY, p3, R3TID_OBJECT, R3TNF_ARRAY));
  452. }
  453.  
  454. // Description: Free memory allocated by the GETSELECTED method.
  455. // p1: Integer, number of target objects
  456. // p3: Object[], target objects as returned by GETSELECTED method
  457.  
  458. R3PLAYM_FREESELECTED = 73044;
  459.  
  460. function mR3PLAYM_FREESELECTED(p1, p3) {
  461.   DoA2(this.r3obj, 73044, p1, R3TID_INTEGER, 0, p3, R3TID_OBJECT, R3TNF_ARRAY);
  462. }
  463.  
  464.  
  465.  
  466.  
  467. R3PLAYA_Root = 73500;
  468. function GetR3PLAYA_Root() {
  469.   return R3ToJS(R3Get(this.r3obj, R3PLAYA_Root, R3TID_OBJECT, 0)); 
  470. }
  471.  
  472. R3PLAYA_CurrentLevel = 73501;
  473. function SetR3PLAYA_CurrentLevel(value) {
  474.   R3Set(this.r3obj, R3PLAYA_CurrentLevel, value, R3TID_OBJECT, 0); 
  475. }
  476.  
  477. function GetR3PLAYA_CurrentLevel() {
  478.   return R3ToJS(R3Get(this.r3obj, R3PLAYA_CurrentLevel, R3TID_OBJECT, 0)); 
  479. }
  480.  
  481. R3PLAYA_AnimRecord = 73502;
  482. function SetR3PLAYA_AnimRecord(value) {
  483.   R3Set(this.r3obj, R3PLAYA_AnimRecord, value, R3TID_BOOLEAN, 0); 
  484. }
  485.  
  486. function GetR3PLAYA_AnimRecord() {
  487.   return R3Get(this.r3obj, R3PLAYA_AnimRecord, R3TID_BOOLEAN, 0); 
  488. }
  489.  
  490. R3PLAYA_CurrentRGB = 73503;
  491. function SetR3PLAYA_CurrentRGB(value) {
  492.   R3Set(this.r3obj, R3PLAYA_CurrentRGB, value, R3TID_COLOR_RGB, 0); 
  493. }
  494.  
  495. function GetR3PLAYA_CurrentRGB() {
  496.   return R3Get(this.r3obj, R3PLAYA_CurrentRGB, R3TID_COLOR_RGB, 0); 
  497. }
  498.  
  499. var R3PLAYA_AutoSelect = 73504; // Integer
  500. var R3PLAYA_Recursive = 73505; // Boolean
  501. R3PLAYA_Matrix = 73506;
  502. function SetR3PLAYA_Matrix(value) {
  503.   R3Set(this.r3obj, R3PLAYA_Matrix, value, R3TID_MATRIX, R3TNF_ARRAY); 
  504. }
  505.  
  506. function GetR3PLAYA_Matrix() {
  507.   return R3Get(this.r3obj, R3PLAYA_Matrix, R3TID_MATRIX, R3TNF_ARRAY); 
  508. }
  509.  
  510. R3PLAYA_Volatile = 73507;
  511. function SetR3PLAYA_Volatile(value) {
  512.   R3Set(this.r3obj, R3PLAYA_Volatile, value, R3TID_INTEGER, 0); 
  513. }
  514.  
  515. function GetR3PLAYA_Volatile() {
  516.   return R3Get(this.r3obj, R3PLAYA_Volatile, R3TID_INTEGER, 0); 
  517. }
  518.  
  519. R3PLAYA_SelectMethod = 73508;
  520. function SetR3PLAYA_SelectMethod(value) {
  521.   R3Set(this.r3obj, R3PLAYA_SelectMethod, value, R3TID_INTEGER, 0); 
  522. }
  523.  
  524. function GetR3PLAYA_SelectMethod() {
  525.   return R3Get(this.r3obj, R3PLAYA_SelectMethod, R3TID_INTEGER, 0); 
  526. }
  527.  
  528. R3PLAYA_MaterialEvaluator = 73509;
  529. function SetR3PLAYA_MaterialEvaluator(value) {
  530.   R3Set(this.r3obj, R3PLAYA_MaterialEvaluator, value, R3TID_OBJECT, 0); 
  531. }
  532.  
  533. function GetR3PLAYA_MaterialEvaluator() {
  534.   return R3ToJS(R3Get(this.r3obj, R3PLAYA_MaterialEvaluator, R3TID_OBJECT, 0)); 
  535. }
  536.  
  537. var R3PLAYA_AfterThis = 73517; // Object
  538. R3PLAYA_RootClid = 73518;
  539. function SetR3PLAYA_RootClid(value) {
  540.   R3Set(this.r3obj, R3PLAYA_RootClid, value, R3TID_INTEGER, 0); 
  541. }
  542.  
  543. function GetR3PLAYA_RootClid() {
  544.   return R3Get(this.r3obj, R3PLAYA_RootClid, R3TID_INTEGER, 0); 
  545. }
  546.  
  547. R3PLAYA_VirtualRoot = 73519;
  548. function SetR3PLAYA_VirtualRoot(value) {
  549.   R3Set(this.r3obj, R3PLAYA_VirtualRoot, value, R3TID_OBJECT, 0); 
  550. }
  551.  
  552. function GetR3PLAYA_VirtualRoot() {
  553.   return R3ToJS(R3Get(this.r3obj, R3PLAYA_VirtualRoot, R3TID_OBJECT, 0)); 
  554. }
  555.  
  556. R3PLAYA_Materials = 73520;
  557. function SetR3PLAYA_Materials(value) {
  558.   R3Set(this.r3obj, R3PLAYA_Materials, value, R3TID_OBJECT, 0); 
  559. }
  560.  
  561. function GetR3PLAYA_Materials() {
  562.   return R3ToJS(R3Get(this.r3obj, R3PLAYA_Materials, R3TID_OBJECT, 0)); 
  563. }
  564.  
  565. var R3PLAYA_InsertThis = 73521; // Object
  566. R3PLAYA_UserChannels = 73522;
  567. function SetR3PLAYA_UserChannels(value) {
  568.   R3Set(this.r3obj, R3PLAYA_UserChannels, value, R3TID_OBJECT, 0); 
  569. }
  570.  
  571. function GetR3PLAYA_UserChannels() {
  572.   return R3ToJS(R3Get(this.r3obj, R3PLAYA_UserChannels, R3TID_OBJECT, 0)); 
  573. }
  574.  
  575. R3PLAYA_World = 73523;
  576. function GetR3PLAYA_World() {
  577.   return R3ToJS(R3Get(this.r3obj, R3PLAYA_World, R3TID_OBJECT, 0)); 
  578. }
  579.  
  580. R3PLAYA_CurrentTag = 73524;
  581. function SetR3PLAYA_CurrentTag(value) {
  582.   R3Set(this.r3obj, R3PLAYA_CurrentTag, value, R3TID_INTEGER, 0); 
  583. }
  584.  
  585. function GetR3PLAYA_CurrentTag() {
  586.   return R3Get(this.r3obj, R3PLAYA_CurrentTag, R3TID_INTEGER, 0); 
  587. }
  588.  
  589. R3PLAYA_CurrentIndex = 73525;
  590. function SetR3PLAYA_CurrentIndex(value) {
  591.   R3Set(this.r3obj, R3PLAYA_CurrentIndex, value, R3TID_INTEGER, 0); 
  592. }
  593.  
  594. function GetR3PLAYA_CurrentIndex() {
  595.   return R3Get(this.r3obj, R3PLAYA_CurrentIndex, R3TID_INTEGER, 0); 
  596. }
  597.  
  598. var R3PLAYA_DuplicateInstances = 73526; // Boolean
  599. var R3SELMODE_NOSELECT = 0;
  600. var R3SELMODE_SELECTMUTEX = 1;
  601. var R3SELMODE_SELECTCUMULATIVE = 2;
  602.  
  603.  
  604. function r3Primlayer () { 
  605.    this.base = r3God;
  606.    if(arguments.length) {
  607.       this.base(R3CLID_PRIMLAYER, arguments);
  608.    }
  609.    // Methods
  610.    this.OPENLEVEL=mR3PLAYM_OPENLEVEL;
  611.    this.CUTPASTE=mR3PLAYM_CUTPASTE;
  612.    this.CUTPASTE2=mR3PLAYM_CUTPASTE2;
  613.    this.DELETEROOT=mR3PLAYM_DELETEROOT;
  614.    this.PERFORMONROOT=mR3PLAYM_PERFORMONROOT;
  615.    this.EDITOBJECTS=mR3PLAYM_EDITOBJECTS;
  616.    this.EDITING=mR3PLAYM_EDITING;
  617.    this.WIRELOCK=mR3PLAYM_WIRELOCK;
  618.    this.WIRERELEASE=mR3PLAYM_WIRERELEASE;
  619.    this.EXECIDLES_moved_to_o=mR3PLAYM_EXECIDLES_moved_to_o;
  620.    this.ADDIDLEMSG_moved_to_=mR3PLAYM_ADDIDLEMSG_moved_to_;
  621.    this.DELETECONDITIONAL=mR3PLAYM_DELETECONDITIONAL;
  622.    this.EXPORT=mR3PLAYM_EXPORT;
  623.    this.MAKEINSTANCES=mR3PLAYM_MAKEINSTANCES;
  624.    this.MAKEKEYFRAMES=mR3PLAYM_MAKEKEYFRAMES;
  625.    this.RAWINSERT=mR3PLAYM_RAWINSERT;
  626.    this.CONCATENATE=mR3PLAYM_CONCATENATE;
  627.    this.MAKESELECTEDCURRENTL=mR3PLAYM_MAKESELECTEDCURRENTL;
  628.    this.COPYPASTE=mR3PLAYM_COPYPASTE;
  629.    this.TOGGLEEDITOBJECTS=mR3PLAYM_TOGGLEEDITOBJECTS;
  630.    this.MAKESELECTEDVIRTUALR=mR3PLAYM_MAKESELECTEDVIRTUALR;
  631.    this.CALLSELECTEDINPAIRS=mR3PLAYM_CALLSELECTEDINPAIRS;
  632.    this.SNAPTONEARESTSELECTE=mR3PLAYM_SNAPTONEARESTSELECTE;
  633.    this.INSERTWITHFIXEDSPACE=mR3PLAYM_INSERTWITHFIXEDSPACE;
  634.    this.REPLACE=mR3PLAYM_REPLACE;
  635.    this.INSERTTOSELECTED=mR3PLAYM_INSERTTOSELECTED;
  636.    this.DROPTOLEVEL=mR3PLAYM_DROPTOLEVEL;
  637.    this.GETEDITSTRING=mR3PLAYM_GETEDITSTRING;
  638.    this.ANIMRECORD=mR3PLAYM_ANIMRECORD;
  639.    this.GETSELECTEDNAMESTRIN=mR3PLAYM_GETSELECTEDNAMESTRIN;
  640.    this.INSERTTO=mR3PLAYM_INSERTTO;
  641.    this.RAWINSERTAFTER=mR3PLAYM_RAWINSERTAFTER;
  642.    this.COLLECTTOLEVEL=mR3PLAYM_COLLECTTOLEVEL;
  643.    this.BEGININTERACTION=mR3PLAYM_BEGININTERACTION;
  644.    this.ENDINTERACTION=mR3PLAYM_ENDINTERACTION;
  645.    this.TRANSFORM=mR3PLAYM_TRANSFORM;
  646.    this.GETOBJECTNAMESTRING=mR3PLAYM_GETOBJECTNAMESTRING;
  647.    this.SETONSELECTEDWIRES=mR3PLAYM_SETONSELECTEDWIRES;
  648.    this.SETRELATIVESUBFLOATO=mR3PLAYM_SETRELATIVESUBFLOATO;
  649.    this.SELECTCHILDREN=mR3PLAYM_SELECTCHILDREN;
  650.    this.INVERTSELECTION=mR3PLAYM_INVERTSELECTION;
  651.    this.CHANGECHANNELBINDING=mR3PLAYM_CHANGECHANNELBINDING;
  652.    this.GETPARENTOFSELECTED=mR3PLAYM_GETPARENTOFSELECTED;
  653.    this.GETSELECTED=mR3PLAYM_GETSELECTED;
  654.    this.FREESELECTED=mR3PLAYM_FREESELECTED;
  655.  
  656.    // Attributes
  657.    this.GetRoot=GetR3PLAYA_Root;
  658.    this.GetCurrentLevel=GetR3PLAYA_CurrentLevel;
  659.    this.SetCurrentLevel=SetR3PLAYA_CurrentLevel;
  660.    this.GetAnimRecord=GetR3PLAYA_AnimRecord;
  661.    this.SetAnimRecord=SetR3PLAYA_AnimRecord;
  662.    this.GetCurrentRGB=GetR3PLAYA_CurrentRGB;
  663.    this.SetCurrentRGB=SetR3PLAYA_CurrentRGB;
  664.    this.GetMatrix=GetR3PLAYA_Matrix;
  665.    this.SetMatrix=SetR3PLAYA_Matrix;
  666.    this.GetVolatile=GetR3PLAYA_Volatile;
  667.    this.SetVolatile=SetR3PLAYA_Volatile;
  668.    this.GetSelectMethod=GetR3PLAYA_SelectMethod;
  669.    this.SetSelectMethod=SetR3PLAYA_SelectMethod;
  670.    this.GetMaterialEvaluator=GetR3PLAYA_MaterialEvaluator;
  671.    this.SetMaterialEvaluator=SetR3PLAYA_MaterialEvaluator;
  672.    this.GetRootClid=GetR3PLAYA_RootClid;
  673.    this.SetRootClid=SetR3PLAYA_RootClid;
  674.    this.GetVirtualRoot=GetR3PLAYA_VirtualRoot;
  675.    this.SetVirtualRoot=SetR3PLAYA_VirtualRoot;
  676.    this.GetMaterials=GetR3PLAYA_Materials;
  677.    this.SetMaterials=SetR3PLAYA_Materials;
  678.    this.GetUserChannels=GetR3PLAYA_UserChannels;
  679.    this.SetUserChannels=SetR3PLAYA_UserChannels;
  680.    this.GetWorld=GetR3PLAYA_World;
  681.    this.GetCurrentTag=GetR3PLAYA_CurrentTag;
  682.    this.SetCurrentTag=SetR3PLAYA_CurrentTag;
  683.    this.GetCurrentIndex=GetR3PLAYA_CurrentIndex;
  684.    this.SetCurrentIndex=SetR3PLAYA_CurrentIndex;
  685. }
  686.  
  687. r3Primlayer.prototype=new r3Objectlayer;
  688. // r3prilay.h_H